{template paome_header}
<link rel="stylesheet" href="static/calendar/js/calendar.css" />
<script type="text/javascript" charset="utf-8" src="static/calendar/calendar.php"></script>
<style type="text/css">
    .bg{display:none;position:fixed;width:100%;height:100%;background:#000;z-index:2;top:0;left:0;opacity:0.7;}
</style>
<h4 style="padding-left:10px;;">
    <span>赛季列表</span>
</h4>
<form class="form-horizontal" method="POST" action="?c=paome_index&a=getPaomeList"  >
    <div class="control-group search-group">
        <label class="control-label" >赛季名称：</label>
        <div class="controls">
            <input type="text" value="{$name}" name="name" placeholder="赛季名" />
        </div>
    </div>

    <div class="control-group search-group">
        <label class="control-label" >赛季状态：</label>
        <div class="controls">
            <select name="status" id="status">
                <option value="0">全部</option>
                {loop $arrStatus $k $v}
                <option value="$k" {if $status == $k}selected{/if}>$v</option>
                {/loop}
            </select>
            <input class="btn" type="submit" value="查询" />
            <a href="?c=paome_index&a=addPaome" target="_blank"><button class="btn btn-primary" type="button">+新建赛季</button></a>
        </div>
    </div>

</form>

<div class="bs-docs-example table-align pt-15" style="clear:both;">
    <table class="table table-striped table-align">
        <thead>
        <tr>
            <th>赛季ID</th>
            <th>赛季名称</th>
            <th>赛季时间</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        </thead>
        {if count($list)>0}
        <tbody>
        {loop $list $k $v}
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['title']}</td>
                <td>{$v['formatTime']}</td>
                <td>{$v['statusMsg']}</td>
                <td>
                    <!--<a href="?c=adminErp&a=getProductDetail&pid={$v['id']}">详情</a>-->
                    <!--<a href="?c=adminErp&a=getProductStandard&pid={$v['id']}">补货</a>-->
                    <!--{if $v['status'] == 0}-->
                        <!--<a href="?c=adminFlashBuy&a=addFlashBuy&flashId={$v['id']}">编辑</a>-->
                        <!--<a href="javascript:void(0);" id="delLog_{$v['id']}" ids="{$v['id']}" >删除</a>-->
                    <!--{/if}-->
                    <!--{if $v['status'] == 5}-->
                        <!--<a href="javascript:void(0);" id="overLog_{$v['id']}" ids="{$v['id']}" >立即结束</a>-->
                    <!--{/if}-->
                    <a href="?c=paome_index&a=addPaome&paomeId={$v['id']}">查看</a>
                    <a href="?c=paome_index&a=getPaomeRoundsList&paomeId={$v['id']}">轮次列表</a>
                    <a href="?c=paome_club&a=getClubList&paomeId={$v['id']}">俱乐部列表</a>
                    <a href="?c=paome_club&a=getUserList&paomeId={$v['id']}">用户列表</a>
                    <a href="?c=paome_rank&a=getRankList&paomeId={$v['id']}">排行列表</a>
                </td>
            </tr>

        {/loop}
        <div id="res"></div>
        </tbody>
        {/if}
    </table>

</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>
{template footer}